package inet.app.tuvi.util;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

import android.graphics.Bitmap;
import android.util.Log;

public class FileUtil {
	private static final String TAG = "FileUtil";
	
	public static boolean saveBitmapToFile(Bitmap bmp, String uriFile) {
		try {
			FileOutputStream outStream = new FileOutputStream(uriFile);
			bmp.compress(Bitmap.CompressFormat.PNG, 90, outStream);
			return true;
		} catch (FileNotFoundException e) {
			Log.e(TAG, e.toString());
			return false;
		}
		
	}
}
